﻿using VisualWip.Core.Interfaces;
using VisualWip.Core.SlotsProviders;

namespace VisualWip.Core.Columns
{
    public class WorkDoneColumn : WorkDualQueryColumnBase
    {
        public WorkDoneColumn()
            : base()
        {
            SlotsProvider = new SlotsProvider(false);
            ColumnType = ColumnType.Inventory;
        }


        public override int GetWorkInProgressLimit()
        {
            return WorkInProgressLimitCalculator.DualQueries(TotalWorkInProgressLimit,
                                                             FirstColumnWorkCount(), SecondColumnWorkCount()).Item2;
        }

        protected override IQuery GetWorkQuery()
        {
            return SecondQuery;
        }
     }
}